bbbc7b
@@ -306,7 +306,6 @@
public static Directory getAcidState(Path directory,
     List<ParsedDelta> working = new ArrayList<ParsedDelta>();
     final List<FileStatus> original = new ArrayList<FileStatus>();
     final List<FileStatus> obsolete = new ArrayList<FileStatus>();
-    Path ignoredBase = null;
     List<FileStatus> children = SHIMS.listLocatedStatus(fs, directory,
         hiddenFileFilter);
     for(FileStatus child: children) {
@@ -314,20 +313,15 @@
public static Directory getAcidState(Path directory,
       String fn = p.getName();
       if (fn.startsWith(BASE_PREFIX) && child.isDir()) {
         long txn = parseBase(p);
-        if (txnList.isTxnRangeCommitted(0, txn) !=
-            ValidTxnList.RangeResponse.ALL) {
-          ignoredBase = p;
+        if (bestBase == null) {
+          bestBase = child;
+          bestBaseTxn = txn;
+        } else if (bestBaseTxn < txn) {
+          obsolete.add(bestBase);
+          bestBase = child;
+          bestBaseTxn = txn;
         } else {
-          if (bestBase == null) {
-            bestBase = child;
-            bestBaseTxn = txn;
-          } else if (bestBaseTxn < txn) {
-            obsolete.add(bestBase);
-            bestBase = child;
-            bestBaseTxn = txn;
-          } else {
-            obsolete.add(child);
-          }
+          obsolete.add(child);
         }
       } else if (fn.startsWith(DELTA_PREFIX) && child.isDir()) {
         ParsedDelta delta = parseDelta(child);
@@ -341,13 +335,6 @@
public static Directory getAcidState(Path directory,
       }
     }
 
-    // Complain if all of the bases were too recent for the minimum excluded
-    // transaction.
-    if (bestBase == null && ignoredBase != null) {
-      throw new IllegalArgumentException("All base directories were ignored," +
-          " such as " + ignoredBase + " by " + txnList);
-    }
-
     // if we have a base, the original files are obsolete.
     if (bestBase != null) {
       obsolete.addAll(original);
